package common

import (
	"time"
)

//const TIME_LAYOUT = "2006-01-02 15:04:05"
const TIME_LAYOUT = "2006-01-02"

type TimeHelper struct {
}

func init() {
	time.LoadLocation("Asia/Shanghai")
}

func (timeHelper *TimeHelper) Format(timestamp int64) string {
	tm := time.Unix(timestamp, 0)
	return tm.Format(TIME_LAYOUT)
}
